package com.example.demo.mapper;

import com.example.demo.entity.Image;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ImageMapper {
    int insert(Image image);
    
    int updateImageName(@Param("id") Integer id, @Param("name") String name);
    
    int deleteImagesByIds(@Param("ids") List<Integer> ids);
    
    int countByFilename(@Param("filename") String filename);
    
    List<String> getImagePathsByIds(@Param("ids") List<Integer> ids);
}
